package com.ttbj.product.api;

import com.ttbj.product.bean.dto.UserDto;

/**
 * 小程序用户接口类
 * 
 * @author Medivh
 *
 */
public interface AppletUserFacade {

	/**
	 * 创建用户信息
	 * 
	 * @param user
	 */
	void addUser(UserDto user) throws Exception;

	/**
	 * 查询用户信息
	 * 
	 * @param user
	 */
	UserDto getUser(UserDto user) throws Exception;

	/**
	 * 更新用户信息
	 * 
	 * @param user
	 */
	void updateUser(UserDto user) throws Exception;

	/**
	 * 检验短信验证码是否正确
	 * 
	 * @param phone
	 * @param code
	 * @throws Exception
	 */
	boolean verifySms(String phone, String code) throws Exception;

	/**
	 * 获取验证短信
	 * @param phone
	 * @throws Exception 
	 */
	void getSms(String phone) throws Exception;

}
